 

module.exports = function (UC, source, config, ArFor, cache, package) {
    var UserControl = UC;
    var router = function (req, res, next) {
        var ajaxTest = {
            error: 0
        };
        var Request = req.body;
        if (UserControl.getoff(req.session.key)) {
            ajaxTest = {
                error: 0
            };
        } else {
            ajaxTest = {
                error: 1
            };
        }
        res.Json(ajaxTest);
    }
    return router;

}